<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Wuye/zu')}">参数列表</a></li>
        <li class="active"><a href="{:url('Wuye/zuAdd')}">添加参数</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Wuye/zuSave')}">


        <div class="form-group row">
            <label class="col-sm-2 control-label">所属分类</label>
            <div class="col-sm-3">
                <select name="cate_id" id="cate_id" class="form-control">
                    <notempty name="cate">
                        <volist name="cate" id="cate">
                            <option value="{$cate.id|default=''}" <notempty name="$res.cate_id">
                            <if condition="$res.cate_id eq $cate.id">selected</if>
                        </notempty>>{$cate.name|default=''}</option>
                        </volist>
                    </notempty>
                </select>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>名称:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="name" value="{$res.name|default=''}">
            </div>
        </div>

        <input type="hidden" name="id" value="{$id|default=''}">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit" value="">保存</button>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>